package com.qfedu.aunt.commons.controller;


import com.qfedu.aunt.commons.result.R;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 雇主表 前端控制器
 * </p>
 *
 * @author xiaobobo
 * @since 2022-10-26
 */
@RestController
@RequestMapping("/aunt/commons/employer")
public class EmployerController {


    /**
     * 雇主的删除
     * @return
     */
    @ApiOperation("雇主的删除")
    @ApiImplicitParam(name = "token",value = "用户身份标识",dataType = "string",paramType = "header",required = true)
    @PreAuthorize("hasAuthority('employer:delete')")  //这个就表示的是 要有employer的delete权限才能访问
    @GetMapping("/delete")
    public R delete(){
        return R.ok();
    }




}

